//全局加载器，用于加载所依赖的js和css，同时，提供SUI的页面初始化

CustomUtils.Loader.showPreloader();//显示一个内置加载指示器
var assetList=new Array(
    "/h5car/css/layout.css",
    "/h5car/css/swiper-3.3.1.min.css",
    //由于包含该js的宿主页面路径的不确定性，建议此处加载清单使用相对路径，在本例中均使用的是绝对路径
    "/h5car/js/sm.min.js",
    //"/h5car/js/sm.js",
    "/h5car/js/crypto_min.js",
    "/h5car/js/swiper-3.3.1.jquery.min.js",
    "/h5car/js/common_tools/datetimeCustom.js",

    //"/h5car/js/page_funcs/router.js"//该js用于SUI框架下的各page页面的执行入口


    "/h5car/js/page_funcs/page_carCheckDetailsHuanche.js",
    "/h5car/js/page_funcs/page_carCheckDetailsQuche.js",
    "/h5car/js/page_funcs/page_carDetails.js",
    "/h5car/js/page_funcs/page_cardManger.js",
    "/h5car/js/page_funcs/page_carEdit.js",
    "/h5car/js/page_funcs/page_carManger.js",
    "/h5car/js/page_funcs/page_carRental.js",
    "/h5car/js/page_funcs/page_carRentalOrder.js",
    "/h5car/js/page_funcs/page_carRentalOrderDetails.js",
    "/h5car/js/page_funcs/page_carRentalOrderGetCar.js",
    "/h5car/js/page_funcs/page_carRentalOrderGiveCar.js",
    "/h5car/js/page_funcs/page_checkBankCard.js",
    "/h5car/js/page_funcs/page_checkCar.js",
    "/h5car/js/page_funcs/page_checkIdCard.js",
    "/h5car/js/page_funcs/page_checkOwner.js",
    "/h5car/js/page_funcs/page_common.js",
    "/h5car/js/page_funcs/page_depositCostDetails.js",
    "/h5car/js/page_funcs/page_editLoginPass.js",
    "/h5car/js/page_funcs/page_editPayPass.js",
    "/h5car/js/page_funcs/page_home.js",
    "/h5car/js/page_funcs/page_login.js",
    "/h5car/js/page_funcs/page_mycarlist1.js",
    "/h5car/js/page_funcs/page_mycarlist2.js",
    "/h5car/js/page_funcs/page_orderDetails.js",
    "/h5car/js/page_funcs/page_otherCostdetails.js",
    "/h5car/js/page_funcs/page_parkCheckCar.js",
    "/h5car/js/page_funcs/page_parkChoosePayment.js",
    "/h5car/js/page_funcs/page_parkConfirm.js",
    "/h5car/js/page_funcs/page_parkIndex.js",
    "/h5car/js/page_funcs/page_parkIndexGetCar.js",
    "/h5car/js/page_funcs/page_parkOrder.js",
    "/h5car/js/page_funcs/page_parkOrderDetails.js",
    "/h5car/js/page_funcs/page_parkRecommend.js",
    "/h5car/js/page_funcs/page_RecheckCar.js",
    "/h5car/js/page_funcs/page_register.js",
    "/h5car/js/page_funcs/page_rentalCar.js",
    "/h5car/js/page_funcs/page_rentalCarOrder.js",
    "/h5car/js/page_funcs/page_rentalCarOrderDetails.js",
    "/h5car/js/page_funcs/page_showOwner.js",
    "/h5car/js/page_funcs/page_tradeDetails.js",
    "/h5car/js/page_funcs/page_withdrawalState.js",
    "/h5car/js/page_funcs/page_youhui.js",
    "/h5car/js/page_funcs/page_zhifu_other.js",
    "/h5car/js/page_funcs/page_zhifu_Park.js",
    "/h5car/js/page_funcs/page_zhifu_yajin.js",
    "/h5car/js/page_funcs/page_welfare.js",
    "/h5car/js/page_funcs/page_checkCar_carEdit.js",
    "http://res.wx.qq.com/open/js/jweixin-1.0.0.js",

    //"/h5car/js/page_funcs/page_weixintest.js",
    "/h5car/js/page_funcs/page_parkIndexFlight.js",
    "/h5car/js/page_funcs/weixinjs.js",
    "/h5car/js/page_funcs/page_all.js"
);
//这里要做为程序的入口，替换jquery的$( document ).ready()
CustomUtils.Loader.BatchLoad(assetList,function(){
    //注意，只有在上面assetList中的资源全部加载完毕才会进入此方法
    console.log('依赖资源加载成功');

    //给script_refresh样式挂载刷新事件
    $(document).on("click",".script_refresh",function(e){
        location.reload();
    });


    //隐藏内置加载显示器
    setTimeout(function(){
            CustomUtils.Loader.hidePreloader();
        },
        1);

    $.init();

});